<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm">
<div id="editcell">
	<table class="adminlist">
	
	<thead>
		<tr>
			
			<th width="20">
				<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" />
			</th>			
			<th width="">
				<?php echo JText::_( 'Название' ); ?>
			</th>
			<th width="100px">
				<?php echo JText::_( 'Порядок' ); ?>
			</th>
			

		</tr>
	</thead>
	<?php
	$k = 0;
	for ($i=0, $n=count( $this->items ); $i < $n; $i++)	{
		$row = &$this->items[$i];
		$checked 	= JHTML::_('grid.id',   $i, $row->id );
		$link 		= JRoute::_( 'index.php?option=com_shop&view=new_good&id='. $row->prod_id );
		?>
		<tr class="<?php echo "row$k"; ?>">
			
			<td align="center">
				<?php echo $checked; ?>
			</td>
			<td>
				<a href="<?php echo $link; ?>"><?php echo $this->name[$i][0]; ?></a>
			</td>
			<td class="order">
				<span><?php echo $this->pagination->orderUpIcon($i); ?></span>
				<span><?php echo $this->pagination->orderDownIcon($i, $n); ?></span>
				<input type="text" name="order[]" size="5" value="<?php echo ($i+1); ?>"  class="text_area" style="text-align:center" />		
			</td>
			
		</tr>
		<?php
		$k = 1 - $k;
	}
	?>
	</table>
</div>

<input type="hidden" name="option" value="com_shop" />
<input type="hidden" name="view" value="on_main"/>
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />

</form>
